package com.geekhome.znxz.quickstart;

import cucumber.api.PendingException;
import cucumber.api.java8.En;
import org.junit.Assert;

/**
 * Copyright © 2019年 znxz. All rights reserved.
 *
 * @author 临江仙 hzqiuxm@163.com
 * 自动创建的第一个Given Steps
 * @date 2019/5/21 11:09
 */
public class MyStepdefs implements En {

    /**
     * 自动实现的方式
     */
    public MyStepdefs() {

        Given("^today is Sunday$", () -> {
            // Write code here that turns the phrase above into concrete actions
            Assert.assertEquals(1,1);
        });
        When("^I ask whether it's Friday yet$", () -> {
            // Write code here that turns the phrase above into concrete actions
            Assert.assertEquals(1,1);
        });
        Then("^I should be told \"([^\"]*)\"$", (String arg0) -> {
            // Write code here that turns the phrase above into concrete actions
            Assert.assertEquals(1,1);
        });
        Given("^today is Friday$", () -> {
            // Write code here that turns the phrase above into concrete actions
            Assert.assertEquals(1,1);
        });

    }
}
